#include "ClassItem.h"

int ClassItem::_total;

ClassItem::ClassItem(GraphScene *scene) : GraphNodeItem(scene)
{
	++_total;
	this->setPlainText(QString("Essence%1").arg(_total));
}

QPainterPath ClassItem::shape() const
{
	QPainterPath path;
	path.addRect(boundingRect());
	return path;
}